package common.validator;

import common.exception.BaseException;
import org.apache.commons.lang.StringUtils;

/**
* @Author: nxs@winning.com.cn
* 
* @Description:   数据校验
* 
* @Date:  2018-06-20 15:47:18
*
*
 **/ 
public abstract class Assert {

    public static void isBlank(String str, String message) {
        if (StringUtils.isBlank(str)) {
            throw new BaseException(message);
        }
    }

    public static void isNull(Object object, String message) {
        if (object == null) {
            throw new BaseException(message);
        }
    }
}
